import time
# 引入selenium库中的webdriver模块，实现对网页的操作
from selenium import webdriver
# 引入By Class，辅助元素定位
from selenium.webdriver.common.by import By
# 引入ActionChains Class，辅助鼠标移动
from selenium.webdriver.common.action_chains import ActionChains
import os



# 加载配置数据
option = webdriver.EdgeOptions()

user_data_dir = os.environ['LOCALAPPDATA'] + r'\Microsoft\Edge\User Data'
option.add_argument(f'--user-data-dir={user_data_dir}')
option.add_argument('--headless')

driver = webdriver.Edge(options=option)
driver.get('http://oa.i-tek.cn/eoffice/client/web/flow/handle/104;run_id=69022;flow_run_process_id=485104;timestamp=1712889229101')

# el = driver.find_element(By.ID, "branchCode")
# el.send_keys('AKGD')
# el = driver.find_element(By.ID, "userName")
# el.send_keys('jh002')
# el = driver.find_element(By.ID, "password")
# el.send_keys('123456.a')
# el = driver.find_element(By.ID, "login")
# el.click()
input()

